Clean whitespace
authorCarlos Liam <carlos@aarzee.me>
Mon, 19 Oct 2015 15:17:53 +0000 (11:17 -0400)
committerCarlos Liam <carlos@aarzee.me>
Mon, 19 Oct 2015 15:17:53 +0000 (11:17 -0400)
Remove leading newlines; replace lines containing only whitespace with empty lines; replace multiple trailing newlines with a single newline; remove trailing whitespace in lines

src/cargo/ops/cargo_rustc/job_queue.rs
src/etc/_cargo
tests/test_cargo_cross_compile.rs
tests/test_cargo_run.rs

index 5966ca3edbf126d029cccfddc6ec9e0fd33e7773..6dea0a60df7da4f1e1c85d299b56bf69c638b04f 100644 (file)
@@ -203,7 +203,7 @@ impl<'a> JobQueue<'a> {
     // out any more information for a package after we've printed it once.
     fn note_working_on(&mut self, config: &Config, key: &Key<'a>,
                        fresh: Freshness) -> CargoResult<()> {
-        if (self.compiled.contains(key.pkg) && !key.profile.doc) || 
+        if (self.compiled.contains(key.pkg) && !key.profile.doc) ||
             (self.documented.contains(key.pkg) && key.profile.doc) {
             return Ok(())
         }
index f7015de8baef655cdbbd5ce3ddab8432a2cc7c9e..2f8a2c824b9d2286fa642823c3a9c7897c1f2fa2 100644 (file)
@@ -306,7 +306,7 @@ regexp-replace manifest '\{"root":"|"\}' ''
 echo $manifest
 }
 
-# Extracts the values of "name" from the array given in $1 and shows them as 
+# Extracts the values of "name" from the array given in $1 and shows them as
 # command line options for completion
 _get_names_from_array()
 {
@@ -325,7 +325,7 @@ _get_names_from_array()
     do
         if [[ $last_line == "[[$block_name]]" ]]; then
             in_block=true
-        else 
+        else
             if [[ $last_line =~ '.*\[\[.*' ]]; then
                 in_block=false
             fi
@@ -336,7 +336,7 @@ _get_names_from_array()
                 regexp-replace line '^.*name *= *|"' ""
                 names+=$line
             fi
-        fi 
+        fi
 
         last_line=$line
     done < $manifest
index ca75fac3548f82c5ae4243a3fee373eb78877694..623de021b3f92b84341ad1c50bde69e04574bf49 100644 (file)
@@ -568,10 +568,10 @@ test!(build_script_needed_for_host_and_target {
                        .with_stdout_contains(&format!("\
 {compiling} d1 v0.0.0 ({url})", compiling = COMPILING, url = p.url()))
                        .with_stdout_contains(&format!("\
-{running} `rustc d1[..]build.rs [..] --out-dir {dir}[..]target[..]build[..]d1-[..]`", 
+{running} `rustc d1[..]build.rs [..] --out-dir {dir}[..]target[..]build[..]d1-[..]`",
     running = RUNNING, dir = p.root().display()))
                        .with_stdout_contains(&format!("\
-{running} `{dir}[..]target[..]build[..]d1-[..]build-script-build`", running = RUNNING, 
+{running} `{dir}[..]target[..]build[..]d1-[..]build-script-build`", running = RUNNING,
     dir = p.root().display()))
                        .with_stdout_contains(&format!("\
 {running} `rustc d1[..]src[..]lib.rs [..]`", running = RUNNING))
index 11a9d9311427bf5849cfe845b8878414c7adf934..1cb3550aaf68e6e3e7675a948057c04684394187 100644 (file)
@@ -501,7 +501,7 @@ test!(run_from_executable_folder {
     let cwd = p.root().join("target").join("debug");
     p.cargo_process("build").exec_with_output().unwrap();
 
-    assert_that(p.cargo("run").cwd(cwd), 
+    assert_that(p.cargo("run").cwd(cwd),
                 execs().with_status(0).with_stdout(&format!("\
 {running} `.{sep}foo[..]`
 hello